<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Collection"%>
<%@page import="java.util.Iterator"%>
<%@page import="crm.control.LinkmanControl"%>
<%@page import="crm.control.SaleareaControl"%>
<%@page import="crm.model.Linkman"%>
<%@page import="crm.model.Salearea"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../resources/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../resources/css/inner.css" type="text/css" media="screen" />
<style type='text/css'>
 a{font-size:12px; text-decoration:none; color:#70B300;}
</style>
		<link rel="stylesheet" type="text/css" href="../../../resources/css/jquery-check.css" />
		<script type="text/javascript" src="../../../resources/js/jquery-1.2.6.js"></script>
		<script type="text/javascript" src="../../../resources/js/jquery-check.js"></script>
		<title>customer_add</title>
	</head>
	<script type="text/javascript"
		src="../../../resources/js/WebCalendar.js">
</script>
	<body style='height:420px;'>
		<%
			request.setCharacterEncoding("UTF-8");
		%>
		<form id="formId" action="customer_add_do.jsp" method="post" >
			<table>
				<tr>
					<td>
						客户名称
					</td>
					<td>
						<input type="text" name="name" id="name" jType="china"/>
					</td>
				</tr>
				<tr>
					<td>
						客户创建时间
					</td>
					<td>
						<input type="text" name="crete_time" maxlength="20"
							onClick="SelectDate(this,'yyyy-MM-dd')" jType="date"/>
					</td>
				</tr>
				<tr>
					<td>
						客户地址
					</td>
					<td>
						<input type="text" name="address" jType="en_dig_chi"/>
					</td>
				</tr>
				<tr>
					<td>
						电话号码
					</td>
					<td>
						<input type="text" name="phone" jType="cellphone" />
					</td>
				</tr>
				
				<tr>
					<td>
						所属区域
					</td>
					<td>
						<select name="area_id">
						<%
						Collection<Salearea> s = SaleareaControl.getAllSalearea();
					     Iterator<Salearea> its = s.iterator();
					     while(its.hasNext()){
					       Salearea salearea = its.next(); 
					    %>
					   <option value="<%=salearea.getId() %>"><%=salearea.getArea_name() %></option>
                      <%} %>
                      </select>
					</td>
				</tr>
				<tr>
					<td>
						客户类型
					</td>
					<td>
						<input type="radio" name="type" value="普通" checked>普通
						<input type="radio" name="type" value="重要">重要
					</td>
				</tr>
				<tr>
					<td>
						客户来源
					</td>
					<td>
						<input type="text" name="origin" jType="china"/>
					</td>
				</tr>
				<tr>
					<td>
						客户从事行业
					</td>
					<td>
						<input type="text" name="business" jType="china"/>
					</td>
				</tr>
				<tr>
					<td style='text-align: center' colspan='2'>
						<input type="submit" class='button' value='提交'/>&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="reset" class='button' value="重置" name="reset"/>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>